1. Turn your HP dv7-1040ef laptop over.
2. Find the laptop battery release button lock for your HP dv7-1040ef laptop.
3. Now that your HP dv7-1040ef laptop battery is unlocked, find the battery release button down.
4. Holding the laptop battery release button, gently pull your battery away from the laptop.
5. Now that your HP dv7-1040ef battery is removed, grab your replacement HP dv7-1040ef battery for installation.
6. Insert the battery into the slot. Push the HP dv7-1040ef battery towards the laptop and secure it in place.